package com.gouqi.mall.service.impl;

import com.gouqi.mall.domain.Person;

import com.gouqi.mall.mapper.PersonMapper;
import com.gouqi.mall.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;


@Service
public class PersonServiceImpl implements PersonService {
    @Autowired
    private PersonMapper personMapper;
    @Override
    public List<Person> getAllPersons() {
        return personMapper.getAllPersons();
    }

    @Override
    public List<Person> getOnePersonByName(String name) {
        return personMapper.getPersonsByName(name);
    }

    @Override
    public List<Person> getPagePersons(String name, Integer pageIndex) {
        return  personMapper.getPagePersons(name,pageIndex);
    }

}
